import request from '@/utils/request'

// 查询实验课申请列表
export function listExperimentrequest(query) {
  return request({
    url: '/lab/experimentrequest/list',
    method: 'get',
    params: query
  })
}

// 查询实验课申请详细
export function getExperimentrequest(requestId) {
  return request({
    url: '/lab/experimentrequest/' + requestId,
    method: 'get'
  })
}

// 新增实验课申请
export function addExperimentrequest(data) {
  return request({
    url: '/lab/experimentrequest',
    method: 'post',
    data: data
  })
}

// 修改实验课申请
export function updateExperimentrequest(data) {
  return request({
    url: '/lab/experimentrequest',
    method: 'put',
    data: data
  })
}

// 删除实验课申请
export function delExperimentrequest(requestId) {
  return request({
    url: '/lab/experimentrequest/' + requestId,
    method: 'delete'
  })
}
